package vip.xiaonuo.biz.modular.notice.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import vip.xiaonuo.biz.modular.group.entity.BizGroupUser;
import vip.xiaonuo.biz.modular.org.entity.BizOrg;
import vip.xiaonuo.biz.modular.user.entity.BizUser;

/**
 * 接收分页参数
 * @author xsl
 * @date 2024-07-13 10:57
 **/
@Getter
@Setter
@ToString
public class BizNoticeList {

    public BizNoticeList(BizUser bizUser) {
        this.key = bizUser.getId();
        this.title = bizUser.getName();
        this.description = bizUser.getName();
        this.disabled = false;
        this.choose = false;
    }

    public BizNoticeList(BizOrg bizOrg) {
        this.key = bizOrg.getId();
        this.title = bizOrg.getName();
        this.description = bizOrg.getName();
        this.disabled = false;
        this.choose = false;
    }

    public BizNoticeList(BizGroupUser bizGroupUser) {
        this.key = bizGroupUser.getId();
        this.title = bizGroupUser.getGroupName();
        this.description = bizGroupUser.getGroupName();
        this.disabled = false;
        this.choose = false;
    }

    String key;
    String title;
    String description;
    Boolean disabled;
    Boolean choose;
}
